<script setup lang="ts">
import { useMemberStore } from '@/stores'
import { getHomeMultidata } from '@/services/home'
import { onLoad } from '@dcloudio/uni-app'
const memberStore = useMemberStore()
const handleJieshou = async () => {
  const res = await getHomeMultidata()
  console.log(res, 'res111')
}
function aa<T>(arr:T[]):T[]{
  return arr
}
aa(['1','2'])

</script>

<template>
  <view class="my">
    <view>会员信息：{{ memberStore.profile }}</view>
    <button
      @tap="
        memberStore.setProfile({
          nickname: '黑马先锋',
          token: 123,
        })
      "
      size="mini"
      plain
      type="primary"
    >
      保存用户信息
    </button>
    <button @tap="memberStore.clearProfile()" size="mini" plain type="warn">清理用户信息</button>
    <button @tap="handleJieshou" size="mini" plain>获取信息</button>
  </view>
</template>

<style lang="scss">
//
</style>
